package com.luyou.framework.common.constants;


/**
 * 系统默认的错误枚举
 * @author luyou
 * @date 2024-6-27 21:15:14
 */
public enum DefaultErrorCodeEnum implements ErrorCode  {
    ERROR(-1, "error" ),
    SUCCESS(1, "success" ),
    NOT_LOGIN(10, "未登录" ),
    SQL_NOT_TABLE_NAME(101, "实体未解析成SQL"),
    ;

    public final Integer code;
    public final String msg;

    DefaultErrorCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
